package com.jt61016.ch04.deepclone;

/**
 * 工作经历
 */
public class WorkExperience implements Cloneable {
    /**
     * 工作经历-时间
     */
    private String timeArea;
    /**
     * 工作经历-公司
     */
    private String company;

    public WorkExperience clone() {
        Object clone = null;
        try {
            clone = super.clone();
        } catch (CloneNotSupportedException e) {
            System.out.println(e.getStackTrace());
        }
        return (WorkExperience)clone;
    }

    public String getTimeArea() {
        return timeArea;
    }

    public void setTimeArea(String timeArea) {
        this.timeArea = timeArea;
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }
}
